#include "Task.hpp"
#include "ThreadPool.hpp"
#include <cstdlib>

int main()    
{            
  srand((unsigned int)time(NULL));    
             
  ThreadPool<task>* tp = new ThreadPool<task>;    
  tp->ThreadPoolInit();
  const char* op = "+-*/%";    
             
  while (true)
  {
        sleep(1);                
        int x = rand() % 100;    
        int y = rand() % 100;      
        int index = rand() % 5;        
        task task(x, y, op[index]);              
        tp->Push(task);
  }            
  return 0;
}

